package io.dataease.commons.utils;

import io.dataease.auth.entity.SysUserEntity;
import org.springframework.stereotype.Component;

@Component
public class AuthUtils {

    private static final String[] defaultPanelPermissions = {"panel_list"};
    private static final String[] defaultDataSetPermissions = {"0"};
    private static final String[] defaultLinkPermissions = {"0"};

    private static final ThreadLocal<SysUserEntity> USER_INFO = new ThreadLocal<>();

    public static SysUserEntity getUser() {
        SysUserEntity currentUserDto = new SysUserEntity();
        currentUserDto.setUserId(184723812153L);
        currentUserDto.setUsername("admin");
        return currentUserDto;
    }
}
